<!--菜单 start-->
<?php $this->load->view('defaults/common/left');?>
<!--菜单 end-->
<div id="content">
    <div class="page-header">
        <div class="container-fluid">
        <h1><?=lang('product_cpxq')?></h1>
        <?=$this->breadcrumb->generateHTML();?>
        </div>
    </div>
    <div class="container-fluid">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-search"></i><?=lang('product_cpxq')?></h3>
            </div>
            <div class="panel-body">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#tab-general" data-toggle="tab"><?=lang('order_ddxq')?></a></li>
                    <?php if($trackList):?>
                    <li><a href="#tab-data" data-toggle="tab"><?=lang('order_wxgj')?></a></li>
                    <?php endif; ?>
                    <?php if($partsList):?>
                    <li><a href="#tab-links" data-toggle="tab"><?=lang('peijian_pjlb')?></a></li>
                    <?php endif; ?>
                    <?php if($holdList):?>
                    <li><a href="#tab-attribute" data-toggle="tab"><?=lang('public_holdTrack')?></a></li>
                    <?php endif; ?>
                     <?php if($logList):?>
                    <li><a href="#tab-option" data-toggle="tab"><?=lang('product_gxrz')?></a></li>
                    <?php endif; ?>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="tab-general">
                        <table class="c_c_tables style20170608" cellspacing="0">
                          <tbody>
                            <tr><td colspan="4" class="Title20170609">产品概况</td></tr>
                            <tr>
                                <td class="tableSubtitle even"><?=lang('product_cplx')?></td>
                                <td class="tableContent"><?=$productFirst['category_name']?></td>
                                <td class="tableSubtitle even"><span style="color:red;">维修</span><?=lang('order_zt')?></td>
                                <td class="tableContent"><?=$productFirst['status_name']?></td>
                            </tr>
                             <tr>
                                <td class="tableSubtitle odd">BRAND</td>
                                <td class="tableContent"><?=$productFirst['product_brand']?></td>
                                <td class="tableSubtitle odd"><?=lang('product_ppkhbh')?></td>
                                <td class="tableContent">
                                    <?php if($brandCustomer):?>
                                    <?=$brandCustomer['id']?>
                                    <?php endif;?>
                                </td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle even">MODEL</td>
                                <td class="tableContent"><?=$productFirst['product_model']?></td>
                                <td class="tableSubtitle even"><?=lang('product_ppkhmc')?></td>
                                <td class="tableContent">
                                    <?php if($brandCustomer):?>
                                    <?=$brandCustomer['name']?>
                                    <?php endif;?>
                                </td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle odd">sku_name</td>
                                <td class="tableContent">
                                    <?php $attributes=json_decode($productFirst['attributes']);?>
                                    <?=$attributes->sku_name?>(
                                    <?php if($attributes){ foreach($attributes as $key=>$val){
                                        switch($val){
                                            case '1':
                                                echo $key.':'."<span style='color: #4ebce8'>YES</span> ";
                                                break;
                                            case '0':
                                                echo $key.':'."<span style='color: #ff0000'>NO</span> ";
                                                break;
                                            default:
                                                if($key != 'sku_name') {
                                                    echo $key . ':' . "<span style='color: #4ebce8'>" . $val . "</span> ";
                                                }
                                                break;
                                        }
                                    }}?>
                                    )
                                </td>
                                <td class="tableSubtitle odd">SKU</td>
                                <td class="tableContent"><?=$productFirst['productSku']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle even">IMEI</td>
                                <td class="tableContent"><?=$productFirst['imei']?></td>
                                <td class="tableSubtitle even"><?= lang('product_imeizbxx') ?></td>
                                <td class="tableContent"><?= $productFirst['inWarranty_trName'] ?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle odd"><?=lang('order_lydh')?></td>
                                <td class="tableContent"><?=$productFirst['source_id_order']?></td>
                                <td class="tableSubtitle odd"><span style="color:red;">产品状态</span></td>
                                <td class="tableContent"></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle even">photo</td>
                                <td colspan="3">
                                    <?php if($productFirst['photos1']):?>
                                    <?php
                                    $photoPath = 'https://s3-eu-west-1.amazonaws.com/tomrepair-ireland/';
                                    if(!$orderFirst['aws']){
                                        $photoPath = 'http://tomrepair.es/media/tickets/';
                                    }
                                    for($i=1;$i<=6;$i++){
                                        $photoUrl = $productFirst['photos'.$i];
                                        if($photoUrl){
                                            $photoUrl = $photoPath.$photoUrl;
                                            echo '
                                            <a href="'.$photoUrl.'" target="_blank" >
                                            <img src="'.$photoUrl.'" width="100" height="75" border="0" style="vertical-align: middle;">
                                            </a>
                                            ';
                                        }
                                    }
                                    ?>
                                    <?php endif;?>
                                </td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle odd"><?=lang('product_spdz')?></td>
                                <td colspan="3"><?=$productFirst['videoUrl']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle even"><?=lang('product_gzms')?></td>
                                <td colspan="3"><?=$productFirst['defectDes']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle odd">拆包质检IMEI</td>
                                <td colspan="3"><?=$productFirst['cb_qc_imei']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle even">出库质检IMEI</td>
                                <td colspan="3"><?=$productFirst['ck_qc_imei']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle odd"><?=lang('product_khbz')?></td>
                                <td colspan="3"><?=$productFirst['customerRemark']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle even"><?= lang('product_sjsfzb') ?></td>
                                <td colspan="3"><?= $productFirst['seller_warrantyName'] ?></td>
                            </tr>
                            <tr><td colspan="4" class="Title20170609">拆包信息</td></tr>
                                <tr>
                                    <td class="tableSubtitle odd"><?= lang('product_cbsfzb') ?></td>
                                    <td class="tableContent">
                                        <?= $productFirst['inWarranty_qcName'] ?><?php if (!empty($productFirst['warranty_img_qc'])): ?>
                                        <a href="javascript:void(0);" onclick="$('.show_pic_qc').show()"
                                           style="border-radius: 2px;padding: 2px 3px;background: rgba(255, 102, 0, 0.34);color:#fff;">PIC</a>
                                        <div class="show_pic_qc">
                                            <span onclick="$('.show_pic_qc').hide()"
                                                  style="padding: 2px 8px;background: #DB3653;color: #fff;cursor: pointer;float: right;line-height: 18px;border-radius: 50%;">X</span>
                                            <?php $arr = explode(',' , $productFirst['warranty_img_qc']);
                                            foreach ($arr as $v) {
                                                if (!empty($v)) {
                                                    echo("<a href='$v' target='_blank'><img src='$v' style='width:200px;margin-right: 10px;'></a>");
                                                }
                                            }
                                            ?>
                                        </div>
                                    <?php endif; ?>
                                    </td>
                                    <td class="tableSubtitle odd"><?=lang('product_cpcs')?></td>
                                    <td class="tableContent"><?=$productFirst['damageName']?></td>
                                </tr>
                                 <tr>
                                    <td class="tableSubtitle even"><?=lang('product_mssfyz')?></td>
                                    <td class="tableContent"><?=$productFirst['descriptionConsistent']?></td>
                                    <td class="tableSubtitle even"><?=lang('product_cbsfhg')?></td>
                                    <td class="tableContent">
                                        <?php if(isset($productFirst['isUnpackPass'])):?>
                                            <?=$productFirst['isUnpackPass']?>
                                        <?php endif;?>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableSubtitle odd"><?=lang('product_sjfj')?></td>
                                    <td colspan="3"><?=$productFirst['accessoriesStr']?></td>
                                </tr>
                                <tr>
                                    <td class="tableSubtitle even"><?=lang('product_cpgz')?></td>
                                    <td colspan="3"><?=$productFirst['faultStr']?></td>
                                </tr>
                                <tr>
                                    <td class="tableSubtitle odd"><?=lang('product_cbbz')?></td>
                                    <td colspan="3">
                                        <?php if($productFirst['csRemark']):?>
                                        <?=$productFirst['csRemark']?>
                                        <?php endif;?>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableSubtitle even"><?=lang('product_zjbz')?></td>
                                    <td colspan="3">
                                        <?php if($productFirst['exitQC']):?>
                                        <?=$productFirst['exitQC']?>
                                        <?php endif;?>
                                    </td>
                                </tr>
                                <tr><td colspan="4" class="Title20170609">维系信息</td></tr>
                                <tr>
                                    <td class="tableSubtitle odd"><?= lang('product_wxsfzb') ?></td>
                                    <td class="tableContent">
                                        <?= $productFirst['inWarrantyName'] ?>
                                        <?php if (!empty($productFirst['warranty_img_rp'])): ?> <a
                                                href="javascript:void(0);" onclick="$('.show_pic_rp').show()"
                                                style="border-radius: 2px;padding: 2px 3px;background: rgba(255, 102, 0, 0.34);color:#fff;">PIC</a>
                                            <div class="show_pic_rp">
                                                <span onclick="$('.show_pic_rp').hide()"
                                                      style="padding: 2px 8px;background: #DB3653;color: #fff;cursor: pointer;float: right;line-height: 18px;border-radius: 50%;">X</span>
                                                <?php $arr = explode(',' , $productFirst['warranty_img_rp']);
                                                foreach ($arr as $v) {
                                                    if (!empty($v)) {
                                                        echo("<a href='$v' target='_blank'><img src='$v' style='width:200px;margin-right: 10px;'></a>");
                                                    }
                                                }
                                                ?>
                                            </div>
                                        <?php endif; ?>
                                    </td>
                                    <td class="tableSubtitle odd"><span style="color:red">维修保外图片</span></td>
                                    <td class="tableContent"></td>
                                </tr>
                                <tr>
                                    <td class="tableSubtitle even"><?=lang('product_wxx')?></td>
                                    <td colspan="3">
                                        <?php if($productFirst['repairItemStr']):?>
                                        <?=$productFirst['repairItemStr']?>
                                        <?php endif;?>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableSubtitle odd"><?=lang('product_wxsbz')?></td>
                                    <td colspan="3">
                                        <?php if($productFirst['technicianRemark']):?>
                                        <?=$productFirst['technicianRemark']?>
                                        <?php endif;?>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableSubtitle tableBottomBorder even"><?=lang('product_bwbzwx')?></td>
                                    <td colspan="3" class="tableBottomBorder">
                                        <?php if($productFirst['warranty_remark_rp']):?>
                                        <?=$productFirst['warranty_remark_rp']?>
                                        <?php endif;?>
                                    </td>
                                </tr>
                          </tbody>
                        </table>
                        <table class="c_c_tables style20170608" cellspacing="0">
                          <tbody>
                            <tr><td colspan="6" class="Title20170609">质检费</td></tr>
                            <tr>
                                <td class="tableSubtitle three tableBottomBorder odd"><?=lang('product_jcf')?></td>
                                <td class="tableContent three tableBottomBorder">
                                    <?php if($productFirst['overhaulAmount']>=0):?>
                                    <?=$productFirst['overhaulAmount']?>
                                    <?php endif;?>
                                </td>
                                <td class="tableSubtitle three tableBottomBorder odd">检测费折扣</td>
                                <td class="tableContent three tableBottomBorder"><?=$productFirst['discountOverhaul']?></td>
                                <td class="tableSubtitle three tableBottomBorder odd">检测税费</td>
                                <td class="tableContent three tableBottomBorder"><?=$productFirst['overhaulTaxFee']?></td>
                            </tr>
                          </tbody>
                        </table>
                        <table class="c_c_tables style20170608" cellspacing="0">
                          <tbody>
                            <tr><td colspan="6" class="Title20170609">维修报价</td></tr>
                            <tr>
                                <td class="tableSubtitle equa even"></td>
                                <td class="tableSubtitle equa even">个人</td>
                                <td class="tableSubtitle equa even">商家</td>
                                <td class="tableSubtitle equa even">品牌</td>
                            </tr>
                             <tr>
                                <td class="tableSubtitle equa alignRight odd">手工费</td>
                                <td class="equa"><?=$productFirst['laborAmountIndividualUser']?></td>
                                <td class="equa"><?=$productFirst['laborAmountMerchant']?></td>
                                <td class="equa"><?=$productFirst['laborAmountBrand']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle equa alignRight even">配件费</td>
                                <td class="equa"><?=$productFirst['partsAmountIndividualUser']?></td>
                                <td class="equa"><?=$productFirst['partsAmountMerchant']?></td>
                                <td class="equa"><?=$productFirst['partsAmountBrand']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle equa alignRight odd">运费</td>
                                <td class="equa"><?=$productFirst['shippingFeeAmountIndividualUser']?></td>
                                <td class="equa"><?=$productFirst['shippingFeeAmountMerchant']?></td>
                                <td class="equa"><?=$productFirst['shippingFeeAmountBrand']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle equa alignRight even">折扣费</td>
                                <td class="equa"><?=$productFirst['discountSubAmountIndividualUser']?></td>
                                <td class="equa"><?=$productFirst['discountSubAmountMerchant']?></td>
                                <td class="equa"><?=$productFirst['discountSubAmountBrand']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle equa alignRight odd">其他费用</td>
                                <td class="equa"><?=$productFirst['otherFeeIndividualUser']?></td>
                                <td class="equa"><?=$productFirst['otherFeeMerchant']?></td>
                                <td class="equa"><?=$productFirst['otherFeeBrand']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle equa alignRight even">税费</td>
                                <td class="equa"><?=$productFirst['taxFee']?></td>
                                <td class="equa"></td>
                                <td class="equa"></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle equa alignRight odd">小记</td>
                                <td class="equa">
                                    <?php if($productFirst['individualUserSubTotal']>=0):?>
                                    <?=$productFirst['individualUserSubTotal']?>
                                    <?php endif;?>
                                </td>
                                <td class="equa">
                                    <?php if($productFirst['merchantSubTotal']>=0):?>
                                    <?=$productFirst['merchantSubTotal']?>
                                    <?php endif;?>
                                </td>
                                <td class="equa">
                                    <?php if($productFirst['brandSubTotal']>=0):?>
                                    <?=$productFirst['brandSubTotal']?>
                                    <?php endif;?>
                                </td>
                            </tr>
                          </tbody>
                        </table>
                        <table class="c_c_tables style20170608" cellspacing="0">
                          <tbody>
                            <tr>
                                <td class="tableSubtitle three tableTopBorder even"><?=lang('product_sfxyqrbj')?></td>
                                <td class="tableContent three tableTopBorder"><?=$productFirst['needToConfirm']?></td>
                                <td class="tableSubtitle three tableTopBorder even"><?=lang('product_sftybj')?></td>
                                <td class="tableContent three tableTopBorder"><?=$productFirst['acceptQuotation']?></td>
                                <td class="tableSubtitle three tableTopBorder even">刷新报价</td>
                                <td class="tableContent three tableTopBorder"><a style="color:#008cd7;" href="<?=blang_url('products/Product_new/reloadPrice/'.$productFirst['id'])?>" >reload</a></td>
                            </tr>
                            <tr><td colspan="6" class="Title20170609">拒绝报价</td></tr>
                            <tr>
                                <td class="tableSubtitle three odd"><?=lang('product_jjbjje')?></td>
                                <td class="tableContent three">
                                    <?php if($productFirst['NAQAmount']>=0):?>
                                    <?=$productFirst['NAQAmount']?>
                                    <?php endif;?>
                                </td>
                                <td class="tableSubtitle three odd">拒绝报价费折扣</td>
                                <td class="tableContent three"><?=$productFirst['discountNAQAmount']?></td>
                                <td class="tableSubtitle three odd">拒绝报价税费</td>
                                <td class="tableContent three"><?=$productFirst['taxFeeNAQ']?></td>
                            </tr>
                            <tr><td colspan="6" class="Title20170609">补充报价</td></tr>
                            <tr>
                                <td class="tableSubtitle three even"><?=lang('product_bcje')?></td>
                                <td class="tableContent three">
                                    <?php if($productFirst['supplementAmount']>=0):?>
                                    <?=$productFirst['supplementAmount']?>
                                    <?php endif;?>
                                </td>
                                <td class="tableSubtitle three even"><?=lang('product_bcjezk')?></td>
                                <td class="tableContent three"><?=$productFirst['discountSupplementAmount']?></td>
                                <td class="tableSubtitle three even">补充报价税费</td>
                                <td class="tableContent three"><?=$productFirst['supplementTaxFee']?></td>
                            </tr>
                            <tr>
                                <td class="tableSubtitle three tableBottomBorder odd"><?=lang('product_bcjesftybj')?></td>
                                <td colspan="5" class="tableBottomBorder"><?=$productFirst['supplementAcceptQuotation']?></td>
                            </tr>
                          </tbody>
                        </table>
                        <table class="c_c_tables style20170608" cellspacing="0">
                          <tbody>
                            <tr><td colspan="4" class="Title20170609">质检信息</td></tr>
                            <tr>
                                <td class="tableSubtitle even"><?=lang('product_zjsfhg')?></td>
                                <td colspan="3"><?=$productFirst['isQcPass']?></td>
                            </tr>
                             <tr>
                                <td class="tableSubtitle odd"><span style="color:red">质检备注</span></td>
                                <td colspan="3"></td>
                            </tr>
                            <tr><td colspan="4" class="Title20170609">发货信息</td></tr>
                                <tr>
                                    <td class="tableSubtitle even">package Number</td>
                                    <td class="tableContent">
                                        <?php if($packages):?>
                                        <a style="color:#008cd7;" href="<?=blang_url('orders/package/GetPackageData/?keyword='.$packages['package_id'])?>" ><?=$packages['package_id']?></a>
                                        <?php endif;?>
                                    </td>
                                    <td class="tableSubtitle even">delivery Method</td>
                                    <td class="tableContent">
                                        <?php if($packages):?>
                                        <?=$packages['delivery_method']?>
                                        <?php endif;?>
                                    </td>
                                </tr>
                                 <tr>
                                    <td class="tableSubtitle odd">Track Number</td>
                                    <td colspan="3">
                                        <?php if($packages):?>
                                        <?=$packages['trace_id']?>
                                        <?php endif;?>
                                    </td>
                                </tr>
                                <tr><td colspan="4" class="Title20170609">操作信息</td></tr>
                                <tr>
                                    <td class="tableSubtitle even"><?=lang('order_gxrq')?></td>
                                    <td class="tableContent"><?=$productFirst['add_time']?></td>
                                    <td class="tableSubtitle even"><?=lang('order_clr')?></td>
                                    <td class="tableContent"><?=$productFirst['add_user']?></td>
                                </tr>
                          </tbody>
                        </table>
                    </div>
                    <?php if($trackList):?>
                    <div class="tab-pane" id="tab-data">
                       <table class="table table-bordered table-hover oms-table">
                            <thead>
                            <tr>
                                <th class="text-left">id</th>
                                <th class="text-left"><?=lang('order_wxdh')?></th>
                                <th class="text-left"><?=lang('order_zt')?></th>
                                <th class="text-right"><?=lang('order_clr')?></th>
                                <th class="text-right"><?=lang('order_rq')?></th>
                                <th class="text-right"><?=lang('order_tbzt')?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($trackList as $key=>$rs):?>
                            <tr>
                                <td class="text-left"><?=$rs['id']?></td>
                                <td class="text-left"><?=$rs['order_num']?></td>
                                <td class="text-left"><?=$rs['status_name']?></td>
                                <td class="text-right"><?=$rs['add_user']?></td>
                                <td class="text-right"><?=$rs['add_time']?></td>
                                <td class="text-right"><?=$rs['is_sync']?></td>
                            </tr>
                            <?php endforeach;?>
                            </tbody>
                        </table>
                    </div>
                    <?php endif; ?>
                    <?php if($partsList):?>
                    <div class="tab-pane" id="tab-links">
                       <table class="table table-bordered table-hover oms-table">
                            <thead>
                            <tr>
                                <th class="text-left">id</th>
                                <th class="text-left"><?=lang('peijian_mc')?></th>
                                <th class="text-left">sku</th>
                                <th class="text-left"><?=lang('peijian_sl')?></th>
                                <th class="text-left"><?=lang('peijian_sj')?></th>
                                <th class="text-right"><?=lang('peijian_bj')?></th>
                                <th class="text-right"><?=lang('order_zt')?></th>
                                <th class="text-right"><?=lang('peijian_ckdm')?></th>
                                <th class="text-right"><?=lang('order_rq')?></th>
                                <th class="text-right"><?=lang('order_clr')?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($partsList as $key=>$rs):?>
                                <tr>
                                    <td class="text-left"><?=$rs['id']?></td>
                                    <td class="text-left">
                                        <?=$rs['name']?>
                                    </td>
                                    <td class="text-left"><?=$rs['sku']?></td>
                                    <td class="text-left"><?=$rs['quantity']?></td>
                                    <td class="text-left"><?=$rs['price']?></td>
                                    <td class="text-right"><?=$rs['rate_price']?></td>
                                    <td class="text-right">
                                        <?php
                                        switch($rs['sap_status']){
                                            case '4':
                                                echo "<span style='color: #FF0099'>已取消</span>";
                                                break;
                                            case '5':
                                                echo "<span style='color: #FF0099'>深圳已到货</span>";
                                                break;
                                            case '7':
                                                echo "<span style='color: #FF0099'>无法采购</span>";
                                                break;
                                            case '8':
                                                echo "<span style='color: #FF0099'>延迟到货</span>";
                                                break;
                                            case '9':
                                                echo "<span style='color: #FF0099'>深圳已发货</span>";
                                                break;
                                            case '12':
                                                echo "<span style='color: #FF0099'>海外已入库</span>";
                                                break;
                                            case '13':
                                                echo "<span style='color: #FF0099'>已出库</span>";
                                                break;
                                            default:
                                                echo $rs['statusName'];
                                                break;
                                        }
                                        ?>
                                    </td>
                                    <td class="text-right"><?=$rs['whs_code']?></td>
                                    <td class="text-right"><?=date('y-m-d H:i',$rs['add_time'])?></td>
                                    <td class="text-right"><?=$rs['add_user']?></td>
                                </tr>
                            <?php endforeach;?>
                            </tbody>
                        </table>
                        <?php if($show_pages):?>
                            <div class="page">
                                <?=$show_pages?>
                            </div>
                        <?php endif;?>
                    </div>
                    <?php endif; ?>
                    <?php if($holdList):?>
                    <div class="tab-pane" id="tab-attribute">
                        <table class="table table-bordered table-hover oms-table">
                            <thead>
                            <tr>
                                <th class="text-left">id</th>
                                <th class="text-left"><?=lang('public_order_num')?></th>
                                <th class="text-left"><?=lang('public_productID')?></th>
                                <th class="text-left"><?=lang('public_remark')?></th>
                                <th class="text-right"><?=lang('public_nameInfo')?></th>
                                <th class="text-right"><?=lang('public_dateTime')?></th>
                                <th class="text-right"><?=lang('public_disposeType')?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($holdList as $key=>$rs):?>
                                <tr>
                                    <td class="text-left"><?=$rs['id']?></td>
                                    <td class="text-left"><?=$rs['order_num']?></td>
                                    <td class="text-left"><?=$rs['pid']?></td>
                                    <td class="text-left"><?=$rs['remark']?></td>
                                    <td class="text-right"><?=$rs['name']?></td>
                                    <td class="text-right"><?=date('Y-m-d H:i:s',$rs['time'])?></td>
                                    <td class="text-right">
                                        <?php
                                        switch($rs['off_or_on']){
                                            case '1':
                                                echo "<span style='color: red'>hold</span>";
                                                break;
                                            case '2':
                                                echo "<span style='color: #009900'>cancelHold</span>";
                                                break;
                                            default:
                                                echo "<span>无法识别</span>";
                                                break;
                                        }
                                        ?>
                                    </td>
                                </tr>
                            <?php endforeach;?>
                            </tbody>
                        </table>
                    </div>
                    <?php endif; ?>

                    <?php if($logList):?>
                    <div class="tab-pane" id="tab-option">
                        <table class="table table-bordered table-hover oms-table">
                            <thead>
                            <tr>
                                <th class="text-left">id</th>
                                <th class="text-left" width="70%"><?=lang('product_gxnr')?></th>
                                <th class="text-right"><?=lang('order_clr')?></th>
                                <th class="text-right"><?=lang('order_rq')?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($logList as $key=>$rs):?>
                                <tr>
                                    <td><?=$rs['id']?></td>
                                    <td width="70%">
                                        <div class="contentFormat">
                                            <?=$rs['contentFormat']?>
                                        </div>
                                    </td>
                                    <td><?=$rs['add_user']?></td>
                                    <td><?=$rs['add_time']?></td>
                                </tr>
                            <?php endforeach;?>
                            </tbody>
                        </table>
                    </div>
                    <?php endif; ?>
                    
                </div>
              
            </div>
        </div>
    </div>
    <style type="text/css">
    .show_pic_qc, .show_pic_rp{position: absolute;margin-top: 10px;background: #fff;border: 2px solid #eee;padding: 14px 15px;display: none;overflow: hidden}
    .show_pic_qc{margin-left: 112px;margin-top: -6px;}
    .show_pic_rp{margin-left: 226px;margin-top: -6px;}
    .contentFormat{width:400px;max-height: 350px;text-align: left;display:inline;}
    .contentFormat img{width:100px;max-height: 250px;vertical-align: middle;}
    </style>
</div>


